﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WomanMotion.WebApi.Infrastructure.DataBaseCommon
{
    /// <summary>
    /// 通用分页数据返回data格式
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class PageViewBase<T>
    {
        /// <summary>
        /// 总共数据条数
        /// </summary>
        public int Total { get; set; }
        /// <summary>
        /// 当前页码
        /// </summary>
        public int PageNum { get; set; }
        /// <summary>
        /// 每页显示多少条数据
        /// </summary>
        public int PageSize { get; set; }
        /// <summary>
        /// 返回数据集
        /// </summary>
        public virtual T? Data { get; set; }
    }
}
